/**
 * 
 */
package me.lc.hammerheads.sprite.dwarfUnit;

import com.wiyun.engine.nodes.Sprite;

import me.lc.hammerheads.core.GameSystem;
import me.lc.hammerheads.sprite.Dwarf;

/**
 * 普通的矮人 打击一次，没有属性
 * 
 * @author Administrator
 * 
 */
public class DwarfNormal extends Dwarf {

	public DwarfNormal() {
		super();
	}

	@Override
	protected void createDwart() {
		this.dwarf = Sprite.make(GameSystem.tex_man1);
	}

	@Override
	public int knock(int power) {
		// 直接打掉
		this.knockOut();
		return 1;
	}

	@Override
	protected int getLifeTime() {
		return 5;
	}

	@Override
	protected int getLifeCount() {
		return 1;
	}

	@Override
	protected float getDwarfX() {
		return 0;
	}

	@Override
	protected void doDwarfAction() {
		// do nothing
	}

	@Override
	protected float getDwarfWidth() {
		return GameSystem.tex_man1.getWidth();
	}

	@Override
	protected int getKnockoutScore() {
		return 100;
	}
}
